package com.lyl.exception.common;

import lombok.Getter;

@Getter
public enum ResultCode {
    SUCCESS(200,"成功"),
    FAIL(400,"失败"),
    PARAMETER_ERROR(401,"参数校验异常"),
    BUSINESS_EXCEPTION(500,"业务异常"),
    SERVER_ERROR(999,"服务器刷新异常,请稍后重试...");

    private Integer code;
    private String msg;

    ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
